// =====================================================================
// <copyright file="EntityValidationWarningTest.cs" author="David R. Guindo">
// 	Copyright (C) 2013. All rights reserved.
// </copyright>
// =====================================================================
// This code is released under the terms of the Apache 2.0 license, 
// http://apache.org/licenses/LICENSE-2.0.html
// =====================================================================

namespace AppBlock.Core.Test
{
    using AppBlock.Core.Validations;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class ValidationWarningTest
    {
        [TestMethod]
        public void ValidationWarning_Ctor()
        {
            var target = new EntityValidationWarning(ValidationType.Empty, "propertyName", "description");
            Assert.IsNotNull(target);
            Assert.AreEqual(target.Description, "description");
            Assert.AreEqual(target.PropertyName, "propertyName");
            Assert.AreEqual(target.ValidationType, ValidationType.Empty);
        }
    }
}